package com.ccc.boot.system.service;

import com.ccc.boot.response.ResponseResult;
import com.ccc.boot.system.entity.RelUserRole;
import com.ccc.boot.system.pojo.RelateUserParam;

/**
 * 用户角色中间表 业务处理接口
 *
 * @author superC
 * @version 0.1.0
 * @date 2022/4/2
 */

public interface RelUserRoleService {

    ResponseResult relateUsers(RelateUserParam param);

    ResponseResult deleteUsers(RelateUserParam param);

    boolean deleteUser(Long userId, Long roleId);

    boolean deleteByUserId(Long userId);

    boolean deleteByRoleId(Long roleId);

    RelUserRole selectByKey(Long userId, Long roleId);

}